package org.nfyszny.zzzs.modules.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.nfyszny.zzzs.modules.entity.ZzzsCertificate;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**type
 * @Description: 证书表
 * @Author: jeecg-boot
 * @Date: 2022-11-11
 * @Version: V1.0
 */
public interface IZzzsCertificateService extends IService<ZzzsCertificate> {
    /**
     * 注销证书
     *
     * @param id
     */
    void cancellationCertificate(ZzzsCertificate zzzsCertificate);

    /**
     * @param certificateId
     * @return
     */
    List<ZzzsCertificate> getCertificate(String certificateId);

    void suspend(ZzzsCertificate zzzsCertificate);

    /**
     * 创建证书
     */
    void createCertificate();

    IPage<ZzzsCertificate> setListByStatus(Page<ZzzsCertificate> page, QueryWrapper<ZzzsCertificate> queryWrapper, int... code);

    /**
     * 获取证书状态
     *
     * @param id
     * @param is
     * @return
     */
    Boolean getStatus(String id, Boolean is);


}
